$(".book").click(function(e){
    id=$(this).attr("data_id");
    document.cookie="img="+$(this).find("img").attr("src")+";path=/";
    document.cookie="intro="+$(this).find("p").text().replace(/[\s\n\t]+/g,'')+";path=/";
    location.href="/detail/"+id;
});